package com.alex.designPattern.composite;

/**
 * 抽象节点
 * @author alex
 *
 */
public abstract class Node {
	
	private String text;
	
	/**
	 * 抽象显示方法
	 */
	public abstract void show();
	
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
}
